/**   
 * 项目名：五位一体化工安全信息平台
 * 日期：    2019-12-08 15:07:44  
 * Copyright (c) 2015- joysuch-版权所有     
 */
package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.entity.BpContractorActivitiesScope;

import com.joysuch.wwyt.bp.bean.BpContractorActivitiesScopeDetailBean;
import com.joysuch.wwyt.bp.bean.BpContractorActivitiesScopeEditBean;
import com.joysuch.wwyt.bp.bean.BpContractorActivitiesScopeListBean;
import static com.joysuch.wwyt.bp.bean.BpContractorActivitiesScopeListBean.Search;

import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BpContractorActivitiesScopeService {

    public BpContractorActivitiesScope add(BpContractorActivitiesScopeEditBean entity) throws Exception;

    void update(BpContractorActivitiesScopeEditBean entity) throws Exception;

    Page<BpContractorActivitiesScopeListBean> findByPage(Pageable page, Search condition);
    
    void delete(Long id) throws BusinessRestrictionsException, BusinessRestrictionsException;

    BpContractorActivitiesScopeDetailBean getById(Long id);
    
    BpContractorActivitiesScope findById(Long id);
}
